package com.ywk.pattern._16_state;

public class Afternoonstate extends State {
    @Override
    public void WriteProgram(Work work) {
        if (work.getHour() < 17) {
            System.out.println("下午工作，精神百倍"+work.getHour());
        }else{
            work.setCurrent(new Eveningstate());
            work.WritePorgram();
        }
    }
}
